package com.gongxt.observer;

import android.content.Context;
import android.content.Intent;
import android.database.ContentObserver;
import android.os.Handler;
import android.util.Log;

import com.gongxt.UpdateService;

public class CallAndSmsObserver extends ContentObserver {
	private static String TAG = "MissCallObserver";
	
	private Context mContext;
	
	public CallAndSmsObserver(Context context, Handler handler) {
		super(handler);
		mContext = context.getApplicationContext();
	}

	@Override
	public void onChange(boolean selfChange) {
		Log.d(TAG, "MissCallObserver onChange called");
		mContext.startService(new Intent(mContext, UpdateService.class));
	}
	
}
